package com.stu.Test;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.stu.Dao.UserDao1;
import com.stu.Service.UserService1;

public class Testuser {

	public static void main(String[] args) {
		//xml显示配置形式测试
		ClassPathXmlApplicationContext applicationContext=new ClassPathXmlApplicationContext("bean1.xml");
		UserDao1 userDao1=(UserDao1) applicationContext.getBean("userDao1");
		UserService1 usService1=(UserService1) applicationContext.getBean("userService1");
		usService1.updateuser();
		userDao1.deleteuser();
	}

}
